package com.qf.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
@Accessors(chain = true)
public class Collect implements Serializable {
  @TableId(type = IdType.AUTO)
  private Integer id;

  private Integer userId;
  private Integer hid;
  private Integer code;
  @DateTimeFormat(pattern = "yyyy-MM-dd")
  private Date date;
}
